package com.xy.frame.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;
@Repository
public interface RoleMapper {

	List<Map<String, Object>> loadRoleTree();

	List<Map<String, Object>> queryRoleTree(Map<String, Object> params);

    Integer queryRoleListCount(Map<String, Object> params);

    List<Map<String,Object>> queryRoleList(Map<String, Object> params);

    List<Map<String,Object>>  queryUserRoleTree(Map<String, Object> params);

	void deleteRole(String roleNum);
	
	void addRole(Map<String,Object> roleMap);

	void updateRole(Map<String, Object> roleMap);

	List<Map<String, Object>> queryAuthMenu(Map<String,Object> loginNum);

	void deletePermission(String loginNum);

	void insertPermission(Map<String, Object> params);
    
}
